<?

/**
 * Simple POJO class. Store errors in $error and key to error in $key.
 * 
 *  
 * @package SpotLight.core.error
 * @author asmhack
 * @version since begin.
 * @license GPL
 * @copyright Serhiy Zaporozhets'
 * 
 * Created 15.10.2008	
 */
class Error {
   
   private $error;
   
   private $key;
   
   public function __construct($error, $key = null) {
      $this->key = $key;
      $this->error = $error;
   }
   
   public function setError($error) {
      $this->error = $error;
   }
   
   public function getError() {
      return $this->error;
   }
   
   public function getKey() {
      return $this->key;
   }
}
?>
